package com.amlyc.java并发编程之美.ch01;

public class InheritableThreadLocal {
    public static ThreadLocal<String> ih = new java.lang.InheritableThreadLocal<>();




    public static void main(String[] args) {
        ih.set("main");
        new Thread(()->{

            System.out.println(ih.get());

        }).start();
        System.out.println(ih.get());
    }
}
